package tt.lab.designparttern.builder;

public class Test {

	public static void main(String[] args) {
		ProductBuilder pba = new AProductBuilder();
		ProductBuilder pbb = new BProductBuilder();
		Worker worker=  new Worker();
		
		worker.setPb(pba);
		worker.buildProduct();
		Product productA = worker.getProduct();
		System.out.println(productA);
		
		worker.setPb(pbb);
		worker.buildProduct();
		Product productB = worker.getProduct();
		System.out.println(productB);
	}

}
